package com.pie4cloud.pie.job.biz.controller;


import com.pie4cloud.pie.common.core.util.R;
import com.pie4cloud.pie.common.security.annotation.Inner;
import com.pie4cloud.pie.job.api.dto.CallBackDto;

import com.pie4cloud.pie.job.biz.service.CallBackService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequiredArgsConstructor
@RequestMapping("/callback" )
public class CallBackController {
	@Autowired
	private CallBackService callBackService;

	@Inner
	@PostMapping("/execute" )
	public R execute(@RequestBody CallBackDto callBackDto) {
		callBackService.execute(callBackDto);
		return R.ok();
	}
}
